package com.szl.yeb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.szl.yeb.entity.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (Department)表数据库访问层
 *
 * @author szl
 * @since 2022-08-24 18:06:34
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Department> selectDepartmentsWithChildren(Integer parentId);

    Integer insertDepartment(Department department);

    Integer deleteDepartment(Department department);
}

